package com.jboost.modules.app.constant;

import lombok.Data;

import java.util.List;

public class CustomerDetailInfo {
    /**
     * code : 200
     * message : success
     * now : 2018-07-02 20:06:37
     * data : {"company_id":32320057,"archive_time":"2017-09-11 11:02:32","company":[{"group_id":1,"name":"基本信息","fields":[{"id":"name","name":"公司名称","field_type":"1","value":"招银网络"},{"id":"short_name","name":"简称","field_type":"1","value":"招银网络"},{"id":"origin","name":"客户来源","field_type":"3","value":"通过查看客户资料，客户的质量非常高，就是要的东西比较杂，需要外购，一个个的整理报价，时间冗长。"}]},{"group_id":2,"name":"特征信息","fields":[{"id":"country","name":"国家地区","field_type":"3","value":"FR"},{"id":"biz_type","name":"客户类型","field_type":"3","value":"渠道商"},{"id":"province","name":"省份","field_type":"3","value":""},{"id":"city","name":"城市","field_type":"3","value":""}]},{"group_id":3,"name":"管理信息","fields":[{"id":"star","name":"客户星级","field_type":"5","value":5},{"id":"group_id","name":"分组","field_type":"3","value":"阿斯顿撒大所"},{"id":"trail_status","name":"客户状态","field_type":"3","value":"小满发现"}]},{"group_id":4,"name":"联系信息","fields":[{"id":"homepage","name":"主页","field_type":"1","value":"www.zhaoyin.com"},{"id":"fax","name":"传真","field_type":"1","value":"4008808820"},{"id":"tel","name":"座机","field_type":"1","value":{"tel_area_code":"","tel":""}},{"id":"address","name":"联系地址","field_type":"1","value":""}]},{"group_id":5,"name":"其他信息","fields":[{"id":"remark","name":"备注","field_type":"2","value":"这是一个简单的备注"},{"id":"33206487","name":"kk-下拉单选","field_type":"3","value":"雪梨"},{"id":"33206912","name":"kk-下拉选项1","field_type":"3","value":"2"},{"id":"33809019","name":"日期","field_type":"4","value":""},{"id":"33871060","name":"sharon自定义文本字段","field_type":"1","value":""},{"id":"37739768","name":"巧克力选项","field_type":"3","value":"德芙"}]}],"customers":[{"customer_id":32320056,"company_id":32320057,"name":"Alex","email":"apple@apple.com","tel_list":[["213","88888888"],["0794","89837499"]],"post":"","contact":[{"type":"whatsapp","value":"097834nnx"},{"type":"qq","value":"hhsdjjk@qshdjjdk.com"}],"main_customer_flag":1},{"customer_id":37747913,"company_id":32320057,"name":"Tony","email":"zhaoyin1@zhaoyin.com","tel_list":[],"post":"超级管理员","contact":[{"type":"skype","value":"123456"},{"type":"whatsapp","value":"34566"},{"type":"facebook","value":"23424"}],"main_customer_flag":0}],"create_time":"2017-09-11 11:02:32"}
     */

    private int code;
    private String message;
    private String now;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getNow() {
        return now;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }
    @Data
    public static class DataBean {
        /**
         * company_id : 32320057
         * archive_time : 2017-09-11 11:02:32
         * company : [{"group_id":1,"name":"基本信息","fields":[{"id":"name","name":"公司名称","field_type":"1","value":"招银网络"},{"id":"short_name","name":"简称","field_type":"1","value":"招银网络"},{"id":"origin","name":"客户来源","field_type":"3","value":"通过查看客户资料，客户的质量非常高，就是要的东西比较杂，需要外购，一个个的整理报价，时间冗长。"}]},{"group_id":2,"name":"特征信息","fields":[{"id":"country","name":"国家地区","field_type":"3","value":"FR"},{"id":"biz_type","name":"客户类型","field_type":"3","value":"渠道商"},{"id":"province","name":"省份","field_type":"3","value":""},{"id":"city","name":"城市","field_type":"3","value":""}]},{"group_id":3,"name":"管理信息","fields":[{"id":"star","name":"客户星级","field_type":"5","value":5},{"id":"group_id","name":"分组","field_type":"3","value":"阿斯顿撒大所"},{"id":"trail_status","name":"客户状态","field_type":"3","value":"小满发现"}]},{"group_id":4,"name":"联系信息","fields":[{"id":"homepage","name":"主页","field_type":"1","value":"www.zhaoyin.com"},{"id":"fax","name":"传真","field_type":"1","value":"4008808820"},{"id":"tel","name":"座机","field_type":"1","value":{"tel_area_code":"","tel":""}},{"id":"address","name":"联系地址","field_type":"1","value":""}]},{"group_id":5,"name":"其他信息","fields":[{"id":"remark","name":"备注","field_type":"2","value":"这是一个简单的备注"},{"id":"33206487","name":"kk-下拉单选","field_type":"3","value":"雪梨"},{"id":"33206912","name":"kk-下拉选项1","field_type":"3","value":"2"},{"id":"33809019","name":"日期","field_type":"4","value":""},{"id":"33871060","name":"sharon自定义文本字段","field_type":"1","value":""},{"id":"37739768","name":"巧克力选项","field_type":"3","value":"德芙"}]}]
         * customers : [{"customer_id":32320056,"company_id":32320057,"name":"Alex","email":"apple@apple.com","tel_list":[["213","88888888"],["0794","89837499"]],"post":"","contact":[{"type":"whatsapp","value":"097834nnx"},{"type":"qq","value":"hhsdjjk@qshdjjdk.com"}],"main_customer_flag":1},{"customer_id":37747913,"company_id":32320057,"name":"Tony","email":"zhaoyin1@zhaoyin.com","tel_list":[],"post":"超级管理员","contact":[{"type":"skype","value":"123456"},{"type":"whatsapp","value":"34566"},{"type":"facebook","value":"23424"}],"main_customer_flag":0}]
         * create_time : 2017-09-11 11:02:32
         */

        private Long company_id;

        public Long getCompany_id() {
            return company_id;
        }

        public void setCompany_id(Long company_id) {
            this.company_id = company_id;
        }

        private String archive_time;
        private List<CustomerTag> tag;
        private String serial_id;
        private String create_time;
        private String country_name;

        private List<CustomerOwner> owner;
        private List<CompanyBean> company;
        private List<CompanyBean.FieldsBean> external_field_data;
        private List<CustomersBean> customers;
        public static class CompanyBean {
            /**
             * group_id : 1
             * name : 基本信息
             * fields : [{"id":"name","name":"公司名称","field_type":"1","value":"招银网络"},{"id":"short_name","name":"简称","field_type":"1","value":"招银网络"},{"id":"origin","name":"客户来源","field_type":"3","value":"通过查看客户资料，客户的质量非常高，就是要的东西比较杂，需要外购，一个个的整理报价，时间冗长。"}]
             */

            private int group_id;
            private String name;
            private List<FieldsBean> fields;

            public int getGroup_id() {
                return group_id;
            }

            public void setGroup_id(int group_id) {
                this.group_id = group_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public List<FieldsBean> getFields() {
                return fields;
            }

            public void setFields(List<FieldsBean> fields) {
                this.fields = fields;
            }

            public static class FieldsBean {
                /**
                 * id : name
                 * name : 公司名称
                 * field_type : 1
                 * value : 招银网络
                 */

                private String id;
                private String name;
                private String field_type;
                private String value;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getField_type() {
                    return field_type;
                }

                public void setField_type(String field_type) {
                    this.field_type = field_type;
                }

                public String getValue() {
                    return value;
                }

                public void setValue(String value) {
                    this.value = value;
                }
            }
        }

        public static class CustomersBean {
            /**
             * customer_id : 32320056
             * company_id : 32320057
             * name : Alex
             * email : apple@apple.com
             * tel_list : [["213","88888888"],["0794","89837499"]]
             * post :
             * contact : [{"type":"whatsapp","value":"097834nnx"},{"type":"qq","value":"hhsdjjk@qshdjjdk.com"}]
             * main_customer_flag : 1
             */

            private Long customer_id;
            private Long company_id;
            private String name;
            private String email;
            private String post;
            private int main_customer_flag;
            private List<List<String>> tel_list;
            private List<ContactBean> contact;

            public void setCustomer_id(Long customer_id) {
                this.customer_id = customer_id;
            }

            public Long getCompany_id() {
                return company_id;
            }

            public void setCompany_id(Long company_id) {
                this.company_id = company_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getPost() {
                return post;
            }

            public void setPost(String post) {
                this.post = post;
            }

            public int getMain_customer_flag() {
                return main_customer_flag;
            }

            public void setMain_customer_flag(int main_customer_flag) {
                this.main_customer_flag = main_customer_flag;
            }

            public List<List<String>> getTel_list() {
                return tel_list;
            }

            public void setTel_list(List<List<String>> tel_list) {
                this.tel_list = tel_list;
            }

            public List<ContactBean> getContact() {
                return contact;
            }

            public void setContact(List<ContactBean> contact) {
                this.contact = contact;
            }

            public static class ContactBean {
                /**
                 * type : whatsapp
                 * value : 097834nnx
                 */

                private String type;
                private String value;

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getValue() {
                    return value;
                }

                public void setValue(String value) {
                    this.value = value;
                }
            }
        }
    }
}
